package com.indexingsystem.boss.entity;

import java.io.Serializable;

public class ResCategoryRelations implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -304204868366384673L;

	private String resCategoryRelationId;

	private String resCategoryId;

	private String resId;

	public String getResCategoryRelationId() {
		return resCategoryRelationId;
	}

	public void setResCategoryRelationId(String resCategoryRelationId) {
		this.resCategoryRelationId = resCategoryRelationId == null ? null : resCategoryRelationId.trim();
	}

	public String getResCategoryId() {
		return resCategoryId;
	}

	public void setResCategoryId(String resCategoryId) {
		this.resCategoryId = resCategoryId == null ? null : resCategoryId.trim();
	}

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId == null ? null : resId.trim();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
		result = prime * result + ((resCategoryRelationId == null) ? 0 : resCategoryRelationId.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResCategoryRelations other = (ResCategoryRelations) obj;
		if (resCategoryId == null) {
			if (other.resCategoryId != null)
				return false;
		} else if (!resCategoryId.equals(other.resCategoryId))
			return false;
		if (resCategoryRelationId == null) {
			if (other.resCategoryRelationId != null)
				return false;
		} else if (!resCategoryRelationId.equals(other.resCategoryRelationId))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		return true;
	}

	public ResCategoryRelations() {
		super();
	}

	public ResCategoryRelations(String resCategoryRelationId, String resCategoryId, String resId) {
		super();
		this.resCategoryRelationId = resCategoryRelationId;
		this.resCategoryId = resCategoryId;
		this.resId = resId;
	}

	@Override
	public String toString() {
		return "ResCategoryRelations [resCategoryRelationId=" + resCategoryRelationId + ", resCategoryId="
				+ resCategoryId + ", resId=" + resId + "]";
	}
}